package ysoserial.exploit.fastjson;


import java.io.IOException;
import java.io.Serializable;

/**
 * @ClassName: User
 * @Description: ToDo
 * @Author: angelwhu
 * @Create: 2019/05/11 18:40
 **/

public class User implements Serializable{
    private String name;
    private int age;

    public String getName() {
        System.out.println("getName()");
        return name;
    }

    public void setName(String name) {
        System.out.println("setName()");
        this.name = name;
    }

    public int getAge() {
        System.out.println("getAge()");
        return age;
    }

    public void setAge(int age) {
        System.out.println("setAge()");
        this.age = age;
    }

    public User(){
        System.out.println("construct user()");
    }

    private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException{
        in.defaultReadObject();
        System.out.println("! readObject Method~");
    }
}
